<%--
  Created by IntelliJ IDEA.
  User: 86492
  Date: 2022/4/9
  Time: 10:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<html>
<head>
  <meta charset="utf-8">
  <title>系统首页</title>
  <style type="text/css">
    .left{
      width: 200px;
      background-color: antiquewhite;
    }
    .rigst{
      width: 100%;
      background-color: aqua;
    }
    .divmax{
      display: flex;
      height:1000px;
    }
    img{
      width: 75%;
      height: 75%;
      border-radius: 90px;
      background-color: royalblue;
    }
    .myimg{
      width: 200px;
      height: 200px;
      margin-top: 22px;
      margin-bottom: 60px;
      text-align: center;
    }
    .showName{
      font-size: 30px;
      font-weight: 800;
    }
    .mybutton{
      margin: 20px;
      text-align: center;
    }
    #loginout{
      text-align: center;
      margin-top: 60px;
    }
  </style>
  <script type="text/javascript">
    function goAdd(col){
      location.href="register.html";
    }
    function goqueryStu(){
      location.href="querystu";
    }
    function loginout(){
      location.href="login.html";
    }
  </script>
</head>
<body>
<div class="divmax">
  <div class="left">
    <div class="myimg">
      <img src="" >
      <br>
      <span></span>
      <br>
      <span class="showName">${user_login.username}</span>
    </div>
    <div class="mybutton">
        <a:if test="${fn:contains(user_login.powers,'1' )}">
          <button type="button" class="" onclick="goqueryStu(this)">查询学生</button>
        </a:if>
    </div>
    <div class="mybutton">
      <a:if test="${fn:contains(user_login.powers,'2' )}">
        <button type="button" class="" onclick="goAdd(this)">新增学生</button>
      </a:if>
    </div>
    <div class="mybutton">
      <button type="button" class="">班级管理</button>
    </div>
    <div id="loginout">
      <button type="button" onclick="loginout()">退出登录</button>
    </div>
  </div>
  <div class="rigst">
  </div>
</div>
</body>
</html>
